package com;

import java.util.Scanner;

public class YangHui {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a;

		System.out.println("请输入数字：");

		a = in.nextInt();

		int[][] yh = new int[a][];
		for (int i = 0; i < yh.length; i++) {
			yh[i] = new int[i + 1];
			yh[i][0]=1;
			yh[i][i]=1;
			
			if(i>=2)
			{
				for(int j=1;j<yh[i].length-1;j++)
					yh[i][j]=yh[i-1][j-1]+yh[i-1][j];
			}
			System.out.println("关机重启。");
		}
		
		TwoArrayOutMethod out = new TwoArrayOutMethod();
		out.out(yh);
		in.close();
	}
}
